import DproDropdown from './dropdown/index.js'
import DproModal from './modal/index.js'
import DproButton from './button/index.js'
import DproSelect from "./select/index.js";
import DproCascader from "./cascader/index.js";
import DproCheck from "./checkbox/index.js";
import DproTree from './tree';
import DproHeader from './header/index';
import DproLoading from './loading/index';
import DproEmpty from './empty/index';
import DproTableAnimate from "./table-animate/index.js";
import DproProgress from "./progress/index.js";
const components = [
  DproDropdown,
  DproModal,
  DproButton,
  DproSelect,
  DproCascader,
  DproCheck,
  DproTree,
  DproHeader,
  DproLoading,
  DproEmpty,
  DproTableAnimate,
  DproProgress
  ];

const install = function (vue) {
  if (install.installed) return;
  components.map(component => {
    vue.component(component.name, component)
  })
};
export {
  install,
  DproDropdown,
  DproModal,
  DproButton,
  DproSelect,
  DproCascader,
  DproCheck,
  DproTree,
  DproHeader,
  DproLoading,
  DproEmpty,
  DproTableAnimate,
  DproProgress
};
